package com.zyz.M_File和IO流.IO流.节点流.Reader和Writer;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author: vick
 * @Date: 2025/4/8
 * @Description:
 * @version: 1.0
 */
public class Demo4 {
    public static void main(String[] args) throws IOException {
        // 使用文件名称创建流对象
        FileWriter fileWriter = new FileWriter(new File("fw.txt"));
        //写出数据
        fileWriter.write(97);
        fileWriter.write('b');
        fileWriter.write('c');
        fileWriter.write(30000);

        fileWriter.close();
    }
}
